package com.ma.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * author: MaHX
 * date: 2019/5/27/13:40
 * description:
 **/
@Data
@NoArgsConstructor
public class User {
    private int id;
    private String username;
    private String password;
    private String phone;
    private String gender;
    private String recentlyLanded;
    private Adress adress;
    private List<Car> cars;
    private List<Role> roleList;

    public User(String username, String password, String phone, String gender) {
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.gender = gender;
    }

    public User(String username, String password, String phone, String gender, String recentlyLanded) {
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.gender = gender;
        this.recentlyLanded = recentlyLanded;
    }
}
